package calculator;

public class OperatorFactory {
	public static Operator buildOperator(String operator){
		if(operator.equals("+")){
			return new AddOperator();
		}
		if(operator.equals("-")){
			return new AddOperator();
		}
		if(operator.equals("*")){
			return new AddOperator();
		}
		if(operator.equals("/")){
			return new AddOperator();
		}
		return null;
	}
}
